import Vue from 'vue';
import appH5 from './H5.vue';
import router from './router/h5/index.js';
import store from './vuex/index';
import $https from 'axios/index';
import filters from './filter/index';
import '@/utils/rem.js';
import "lib-flexible/flexible.js";

Vue.prototype.$https = $https;
Vue.config.productionTip = false;
Vue.config.devtools = true;
// 循环Vue绑定filter
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});

/* eslint-disable no-new */
window.$appH5 = new Vue({
  el: '#appH5',
  router,
  store,
  components: { appH5 },
  template: '<appH5/>',
});
